﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Com.CMS263.DAO;
using Com.CMS263.PO;

namespace Com.CMS263.BLL
{
    public class StudentInfoBLL : BaseBLL<StudentInfo>
    {
        StudentInfoDAO dao = new StudentInfoDAO();
        public StudentInfo entity = new StudentInfo();
        public override StudentInfo GetModel()
        {
            return entity;
        }
        public int GetMaxId()
        {
            return dao.GetMaxId();
        }
        public IList<StudentInfo> GetListByPager(int page, int pagesize, int listid)
        {
            return dao.GetListByPager(page, pagesize,listid);
        }
        public int GetListByPager(int listid)
        {
            return dao.GetListByPager(listid);
        }
        public bool isExist(string userName)
        {
            return dao.isExist(userName);
        }


        public StudentInfo Login(string username, string password)
        {
            return dao.Login(username, password);
        }
    }
}
